﻿#include <iostream>
#include "Dog.h"
#include "Cat.h"
#include "Student.h"

int main()
{
    const int N = 5;
    IAnimal* AnimalList[N];
    AnimalList[0] = new Dog();
    AnimalList[1] = new Cat();
    AnimalList[2] = new Cat();
    AnimalList[3] = new Student();
    AnimalList[4] = new Dog();

    for (auto element : AnimalList)
    {
        element->Voice();
    }
}
